package seata.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import seata.dao.SeataTableThreeMapper;
import seata.entity.SeataTableThree;
import seata.service.SeataTableThreeService;

@RestController
public class Provider8803Controller {
    @Autowired
    private SeataTableThreeMapper seataTableThreeMapper;

    @GetMapping("/c1")
    public String c1(){
        return seataTableThreeMapper.selectById(1).toString();
    }

    @GetMapping("/update")
    public String update(String name){
        seataTableThreeMapper.updateSeataTableById(1,name);
        return "success";
    }
}
